<?php

!defined('SYSTEM_INCLUDED') && exit('Access Denied');

Class IndexController extends BaseController{
	
	public function Index(){
		echo '框架搭建完毕！';
	}
	
	public function Welcome(){
		$demo = array(
					  '数字猜解游戏' => 'guessnum.php',
			          '简单的SQL查询语句' => 'simplesql.php',
					  );
		$this->view->assign('headerTitle','欢迎使用SYSTEM Framework（PHP框架）！');
		$this->view->assign('demo',$demo);
		$this->view->assign('version',implode(" / ",SysBase::getVersion()));
        $this->view->display();
	}
	
}